package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 二手物品订单对象 sys_goods_order
 *
 * @author jjp
 * @date 2020-04-24
 */
@ApiModel("二手物品订单对象")
public class SysGoodsOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @ApiModelProperty(name = "订单id")
    private Long goodsOrderId;

    /**
     * 下单用户id
     */
    @ApiModelProperty(name = "下单用户id")
    private Long mobileUserId;

    /**
     * 用户id
     */
    @ApiModelProperty(name = "二手商品id")
    private Long goodsId;

    /**
     * 用户id
     */
    @ApiModelProperty(name = "用户地址id")
    private Long addressId;

    /**
     * 订单号
     */
    @ApiModelProperty(name = "订单号")
    private String orderNo;

    /**
     * //发货状态 商品配送情况;0未发货,1已发货,2已收货,4退货
     */
    @ApiModelProperty(name = "发货状态 商品配送情况;0未发货,1已发货,2已收货,4退货")
    private String orderStatus;

    /**
     * //付款状态 支付状态;0未付款;1付款中;2已付款;4退款
     */
    @ApiModelProperty(name = "付款状态 支付状态;0未付款;1付款中;2已付款;4退款")
    private String payStatus;

    /**
     * 0订单创建成功等待付款  1订单已取消 2 订单已删除 3 订单已付款，等待发货 4 订单已发货 5 用户确认收货 6 没有发货，退款 7 已收货，退款退货
     */
    @ApiModelProperty(name = " 0订单创建成功等待付款  1订单已取消 2 订单已删除 3 订单已付款，等待发货 4 订单已发货 5 用户确认收货 6 没有发货，退款 7 已收货，退款退货")
    private String goodsOrderStatus;

    /**
     * 快递单号
     */
    @ApiModelProperty(name = "快递单号")
    private String expressNo;

    /**
     * 发货时间
     */
    @ApiModelProperty(name = "发货时间")
    private Date expressTime;

    /**
     * 退换货原因
     */
    @ApiModelProperty(name = "退换货原因")
    private String reason;

    /**
     * 支付方式 1-支付宝 2-微信(数据字典)
     */
    @ApiModelProperty(name = "支付时间")
    private Date payTime;

    /**
     * 支付方式 1-支付宝 2-微信(数据字典)
     */
    @ApiModelProperty(name = "支付方式 1-支付宝 2-微信(数据字典)")
    private String payType;

    /**
     * 用户name
     */
    private String userName;

    private Double money;

    @ApiModelProperty(name = "地址")
    private String area;

    @ApiModelProperty(name = "详细地址")
    private String address;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "商品名称")
    private String goodsName;

    /**
     * 手机号码
     */
    @ApiModelProperty(name = "手机号码")
    private String phone;

    private String cityName;

    private String cancelStatus;

    private String name;


    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setGoodsOrderId(Long goodsOrderId) {
        this.goodsOrderId = goodsOrderId;
    }

    public Long getGoodsOrderId() {
        return goodsOrderId;
    }

    public void setMobileUserId(Long mobileUserId) {
        this.mobileUserId = mobileUserId;
    }

    public Long getMobileUserId() {
        return mobileUserId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setGoodsOrderStatus(String goodsOrderStatus) {
        this.goodsOrderStatus = goodsOrderStatus;
    }

    public String getGoodsOrderStatus() {
        return goodsOrderStatus;
    }

    public void setExpressNo(String expressNo) {
        this.expressNo = expressNo;
    }

    public String getExpressNo() {
        return expressNo;
    }

    public void setExpressTime(Date expressTime) {
        this.expressTime = expressTime;
    }

    public Date getExpressTime() {
        return expressTime;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getReason() {
        return reason;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayType() {
        return payType;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getCancelStatus() {
        return cancelStatus;
    }

    public void setCancelStatus(String cancelStatus) {
        this.cancelStatus = cancelStatus;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "SysGoodsOrder{" +
                "goodsOrderId=" + goodsOrderId +
                ", mobileUserId=" + mobileUserId +
                ", goodsId=" + goodsId +
                ", addressId=" + addressId +
                ", orderNo='" + orderNo + '\'' +
                ", orderStatus='" + orderStatus + '\'' +
                ", payStatus='" + payStatus + '\'' +
                ", goodsOrderStatus='" + goodsOrderStatus + '\'' +
                ", expressNo='" + expressNo + '\'' +
                ", expressTime=" + expressTime +
                ", reason='" + reason + '\'' +
                ", payTime=" + payTime +
                ", payType='" + payType + '\'' +
                ", userName='" + userName + '\'' +
                ", money=" + money +
                ", area='" + area + '\'' +
                ", address='" + address + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", phone='" + phone + '\'' +
                ", cityName='" + cityName + '\'' +
                ", cancelStatus='" + cancelStatus + '\'' +
                '}';
    }
}
